package com.stoken.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.stoken.dao.MemberLeaveMessageDao;
import com.stoken.dao.MemberLeaveReplyDao;
import com.stoken.dao.NoticeDao;
import com.stoken.dao.TravelLeaveMessageDao;
import com.stoken.dao.TravelLeaveReplyDao;
import com.stoken.domain.MemberLeaveMessage;
import com.stoken.domain.MemberLeaveReply;
import com.stoken.domain.Notice;
import com.stoken.domain.TravelLeaveMessage;
import com.stoken.domain.TravelLeaveReply;
import com.stoken.service.MemberLeaveMessageService;
import com.stoken.service.NoticeService;
import com.stoken.service.TravelLeaveMessageService;
import com.symbio.commons.Page;
import com.symbio.dao.hibernate.GenericDaoImpl;
import com.symbio.service.impl.AbstractServiceImpl;

@Service
public class TravelLeaveMessageServiceImpl extends AbstractServiceImpl<TravelLeaveMessage, Long> implements TravelLeaveMessageService{
	
    @Autowired
	private TravelLeaveMessageDao travelLeaveMessageDao;
    
    @Autowired
   	private TravelLeaveReplyDao travelLeaveReplyDao;

	@Override
	public GenericDaoImpl<TravelLeaveMessage, Long> getDao() {
		return travelLeaveMessageDao;
	}

	@Override
	public Page<TravelLeaveMessage> find(Page<TravelLeaveMessage> pageData,long bId) {
		return travelLeaveMessageDao.findListByPid(pageData, bId);
	}

	@Override
	public Page<TravelLeaveMessage> find(Page<TravelLeaveMessage> pageData) {
		return travelLeaveMessageDao.find(pageData);
	}



}
